import Vue from 'vue'
import Router from 'vue-router'
import News from '@/pages/News'
import Login from '@/pages/Login'
import Register from '@/pages/Register'
import NewDetail from '@/pages/NewDetail'
import test from '@/pages/test'
import Isloggedcircle from '@/pages/pages1'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: '咨询首页',
      component: News

    },
    {
      path: '/login',
      name: '登录',
      component: Login

    },
    {
      path: '/register',
      name: '注册',
      component: Register

    },
    {
      path: '/newDetail/:id',
      name: '咨询详情',
      component: NewDetail

    },{
      path: '/test',
      name: '测试',
      component: test

    },
    {
      path: '/Isloggedcircle',
      name: '咨询详情',
      component: Isloggedcircle

    }

  ]
})
